package ViewPropertyPanel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JToolBar;

import drawPropertyCommands.GraphicsProperties;



import view.ViewController;


public class Main {
    public static void main(String[] args){
        JFrame frame = new JFrame();
        
        ActionListener vc = new ActionListener(){
            
            GraphicsProperties gp = new GraphicsProperties();
            
            @Override
            public void actionPerformed(ActionEvent e) {
                System.out.println(e.getActionCommand());
                if(e.getSource() instanceof DrawModifierButtons){
                    ((DrawModifierButtons)e.getSource()).executeModify(gp);
                }
                
            }
            
        };
        ViewPropertyToolBar vpt = new ViewPropertyToolBar(vc);
        frame.getContentPane().add(vpt, BorderLayout.CENTER);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
    }
}
